<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="jquery.js"></script>
<button id="btn">点击事件</button>
<script>
    $('#btn').click(function(){
        alert('点击事件')
        console.log('点击事件')
    })
</script>

</body>
</html>